<template>
  <view class="xk_ad">
    <ad :unit-id="x_common_ad.ad_id" v-if="x_common_ad.from === 'wx' && x_common_ad.ad_type === 'banner'" ></ad>
    <ad :unit-id="x_common_ad.ad_id" ad-type="video" ad-theme="white" v-if="x_common_ad.from === 'wx' && x_common_ad.ad_type === 'video'" ></ad>
    <ad-custom :unit-id="x_common_ad.ad_id" v-if="x_common_ad.from === 'wx' && x_common_ad.ad_type === 'diy'"></ad-custom>
    <ad :adpid="x_common_ad.ad_id" v-if="x_common_ad.from === 'uni'"></ad>
    <ad-interstitial ref="adInterstitial" :adpid="x_cp_ad.ad_id" v-if="x_cp_ad.from === 'uni'"></ad-interstitial>
  </view>
</template>
<script>
export default {
  name: "xad",
  data() {
    return {
    }
  },
  methods: {

  },
  props: ["x_common_ad","x_cp_ad"],
};
</script>
<style lang="scss" scoped>

</style>
